package com.baili.healthsystemserver.controller;

import com.baili.healthcommoncore.domain.result.Result;
import com.baili.healthsystem.domain.User;
import com.baili.healthsystem.domain.request.UserRequest;
import com.baili.healthsystemserver.service.SystemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author：ShenJiaFeng
 * @Package：com.baili.healthsystemserver.controller
 * @Project：baili-health-cloud
 * @name：SystemController
 * @Date：2024/5/24 20:01
 */
@RestController
@RequestMapping("/system")
public class SystemController {
    @Autowired
    private SystemService systemService;

    /**
     * 查询用户登录信息 /手机号/邮箱/身份证号/用户名
     * @param userRequest
     * @return
     */
    @PostMapping("/findByUserLoginInfo")
    public Result<User> findByUserNameOrUserEmailOrPhoneOrIdCard(@RequestBody UserRequest userRequest){
        //719 合并推送
        return Result.success(







                systemService.findByUserNameOrUserEmailOrPhoneOrIdCard(userRequest)
        );
    }

}
